# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-codecov
_pkgname=codecov
pkgver=2.1.13
pkgrel=4
pkgdesc='Hosted coverage reports for Github, Bitbucket and Gitlab.'
url='https://pypi.org/project/codecov/#files'
arch=('any')
license=('APACHE')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('0083395e01a0fa7b49641ec6d88e43208c3e3d251dba8396c89b334620cf0e66447a4e6b3e05e9dd383b93e1efbf55213b77742b3e9de7e22a91296aede727c7')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

